import service from '@/utils/request'
/**
 * 查看计费规则列表
 * @param {*} params
 * @returns
 */
export function getRuleListAPI (params) {
  return service({
    url: '/parking/rule/list',
    params
  })
}
/**
 * 删除计费规则
 * @param {*} id
 * @returns
 */
export function delRuleAPI (id) {
  return service({
    url: `/parking/rule/${id}`,
    method: 'delete'
  })
}
/**
 * 添加计费规则
 * @param {*} data
 * @returns
 */
export function addRuleAPI (data) {
  return service({
    url: '/parking/rule',
    method: 'post',
    data
  })
}
